package com.yoga.utils;

public class LoginCode {
    private static char[] arr = {
            48,49,50,51,52,53,54,55,56,57
    };
    public static String getLoginCode (){
        String loginCode = "";
        for (int i = 0; i < 5; i++) {
            loginCode+=arr[(int) (Math.random()*10)];
        }
        return loginCode;
    }

    public static void main(String[] args) {
        String loginCode = LoginCode.getLoginCode();
        System.out.println(loginCode);
    }

}